//package com.controller;
//
//
//import com.pojo.Result;
//import com.pojo.Workstation;
//import com.service.WorkstationService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//
//@RestController
//@RequestMapping("/workstations")
//@Validated
//public class WorkstationController {
//    @Autowired
//    private WorkstationService workstationService;
//
//    // 新增工位
//    @PostMapping
//    public Result addWorkstation(@RequestBody Workstation workstation) {
//        workstationService.add(workstation);
//        return Result.success();
//    }
//
//    // 根据楼层查询工位列表
//    @GetMapping
//    public Result listByFloor(@RequestParam Integer floorId) {
//        return Result.success(workstationService.listByFloor(floorId));
//    }
//
//    // 更新工位状态
//    @PatchMapping("/{id}/status")
//    public Result updateStatus(@PathVariable Integer id,
//                               @RequestParam String status) {
//        workstationService.updateStatus(id, status);
//        return Result.success();
//    }
//
//    // 获取工位3D模型标识
//    @GetMapping("/{id}/model")
//    public Result<String> getModelIdentifier(@PathVariable Integer id) {
//        String modelId = workstationService.getModelIdentifier(id);
//        return Result.success(modelId);
//    }
//}